Matplotlib for Python Developers by Aldrin Yim

Matplotlib for Python Developers by Aldrin Yim

Author:Aldrin Yim [Aldrin Yim]
Language: eng
Format: epub
Tags: COM089000 - COMPUTERS / Data Visualization, COM051360 - COMPUTERS / Programming Languages / Python, COM018000 - COMPUTERS / Data Processing
Publisher: Packt Publishing
Published: 2018-04-24T07:04:34+00:00


As you can see from the preceding example, event handling and picking are the elements that makes the interaction part much easier than we imagine. Therefore, it is important to have a quick review of the available event connections that are part of the FigureCanvasBase:

Event name Class and description

button_press_event MouseEvent: Mouse button is pressed

button_release_event MouseEvent: Mouse button is released

scroll_event MouseEvent: Mouse scroll wheel is rolled

motion_notify_event MouseEvent: Mouse motion

draw_event DrawEvent: Canvas draw

key_press_event KeyEvent: Key is pressed

key_release_event KeyEvent: Key is released

pick_event PickEvent: An object in the canvas is selected

resize_event ResizeEvent: Figure canvas is resized

figure_enter_event LocationEvent: Mouse enters a new figure

figure_leave_event LocationEvent: Mouse leaves a figure

axes_enter_event LocationEvent: Mouse enters a new axis

axes_leave_event LocationEvent: Mouse leaves an axis



Download



Copyright Disclaimer:
This site does not store any files on its server. We only index and link to content provided by other sites. Please contact the content providers to delete copyright contents if any and email us, we'll remove relevant links or contents immediately.